'''
Created on 15 mai 2009

@author: tmeedendorp
'''

class WriteLineComputor(object):
    '''
    classdocs
    '''


    def __init__(self):
        self.lineNumber = 0
        self.currentLine = ""
        
    def processWord(self, word, lineNumber):
        if self.lineNumber != lineNumber:
            print("Ligne "+str(lineNumber)+" : "+self.currentLine)
            self.lineNumber+=1
            self.currentLine = word
        else:
           self.currentLine+=" "+word
        